* fileio.c (Ffile_writable_p): Pass XSTRING (foo)->data to
authorJim Blandy <jimb@redhat.com>
Mon, 24 May 1993 15:22:47 +0000 (15:22 +0000)
committerJim Blandy <jimb@redhat.com>
Mon, 24 May 1993 15:22:47 +0000 (15:22 +0000)
ro_fsys, not XSTRING (foo).

src/fileio.c

index 8987142e2ce9085a6118b6f49f049d34c8e7fcee..da591b525b1ce12b1e525f51b30fd939378163e4 100644 (file)
@@ -2112,7 +2112,7 @@ DEFUN ("file-writable-p", Ffile_writable_p, Sfile_writable_p, 1, 1, 0,
 
   if (access (XSTRING (abspath)->data, 0) >= 0)
     return ((access (XSTRING (abspath)->data, 2) >= 0
-            && ! ro_fsys (XSTRING (abspath)))
+            && ! ro_fsys ((char *) XSTRING (abspath)->data))
            ? Qt : Qnil);
   dir = Ffile_name_directory (abspath);
 #ifdef VMS
@@ -2120,7 +2120,7 @@ DEFUN ("file-writable-p", Ffile_writable_p, Sfile_writable_p, 1, 1, 0,
     dir = Fdirectory_file_name (dir);
 #endif /* VMS */
   return ((access (!NILP (dir) ? (char *) XSTRING (dir)->data : "", 2) >= 0
-          && ! ro_fsys ((char *) XSTRING (dir)))
+          && ! ro_fsys ((char *) XSTRING (dir)->data))
          ? Qt : Qnil);
 }